<?php

return [
    'menu' => [
        'order' => [
            'name' => '订单管理',
            'ico' => '&#xe726;',
            'sub' => [
                'list' => ['name' => '订货单', 'uri' => '/order/list', 'show' => true, 'method' => 'get'],  //index 方法名
                'listdetail' => ['name' => '添加订单', 'uri' => '/order/listdetail', 'show' => false, 'method' => 'get|post'],  //index 方法名
                'list_edit' => ['name' => '修改订单信息', 'uri' => '/order/list_edit', 'show' => false, 'method' => 'get|post'],  //index 方法名
                'list1' => ['name' => '发货单', 'uri' => '/order/list1', 'show' => true, 'method' => 'get'],  //index 方法名
                'list2' => ['name' => '售后单', 'uri' => '/order/list2', 'show' => true, 'method' => 'get'],  //index 方法名
                'rpay' => ['name' => '收款确认', 'uri' => '/order/rpay', 'show' => true, 'method' => 'get'],  //index 方法名
                'rkd' => ['name' => '入库单', 'uri' => '/order/rkd', 'show' => true, 'method' => 'get'],  //index 方法名
                'ckd' => ['name' => '出库单', 'uri' => '/order/ckd', 'show' => true, 'method' => 'get'],  //index 方法名
                'ckd_edit' => ['name' => '添加出库', 'uri' => '/order/ckd_edit', 'show' => false, 'method' => 'get|post'],  //index 方法名
                'rkd_edit' => ['name' => '添加入库', 'uri' => '/order/rkd_edit', 'show' => false, 'method' => 'get|post'],  //index 方法名
            ],
            'show' => true,
        ],
        'shop' => [
            'name' => '商品管理',
            'ico' => '&#xe726;',
            'sub' => [
                'platclass' => ['name' => '商品分类', 'uri' => '/shop/platclass', 'show' => true, 'method' => 'get'],  //index 方法名
                'platclass_edit' => ['name' => '分类编辑、管理', 'uri' => '/shop/platclass_edit', 'show' => false, 'method' => 'get|post'],
                'platclass_del' => ['name' => '分类删除', 'uri' => '/shop/platclass_del', 'show' => false, 'method' => 'get|post'],
                'goods' => ['name' => '商品列表', 'uri' => '/shop/goods', 'show' => true, 'method' => 'get'],  //index 方法名
                'goods_field' => ['name' => '商品操作', 'uri' => '/shop/goods_field', 'show' => false, 'method' => 'get|post'],
                'goods_edit' => ['name' => '商品编辑、管理', 'uri' => '/shop/goods_edit', 'show' => false, 'method' => 'get|post'],
                'goodsrec' => ['name' => '商品回收站', 'uri' => '/shop/goodsrec', 'show' => true, 'method' => 'get'],  //index 方法名
            ],
            'show' => true,
        ],
        'user' => [
            'name' => '客户管理',
            'ico' => '&#xe726;',
            'sub' => [
                'index' => ['name' => '客户列表', 'uri' => '/user/index', 'show' => true, 'method' => 'get'],  //index 方法名
                'user_edit' => ['name' => '客户添加/编辑', 'uri' => '/user/user_edit', 'show' => false, 'method' => 'get|post'],  //index 方法名
                'address' => ['name' => '客户地址', 'uri' => '/user/address', 'show' => false, 'method' => 'get'],  //index 方法名
                'address_edit' => ['name' => '收货地址添加/编辑', 'uri' => '/user/address_edit', 'show' => false, 'method' => 'get|post'],  //index 方法名
                'address_del' => ['name' => '收货地址删除', 'uri' => '/user/address_del', 'show' => false, 'method' => 'post'],  //index 方法名
                'userauth' => ['name' => '客户类型', 'uri' => '/user/userauth', 'show' => true, 'method' => 'get'],  //index 方法名
                'userauth_edit' => ['name' => '客户类型添加/编辑', 'uri' => '/user/userauth_edit', 'show' => false, 'method' => 'get|post'],  //index 方法名
                'userauth_del' => ['name' => '客户类型删除', 'uri' => '/user/userauth_del', 'show' => false, 'method' => 'post'],  //index 方法名
            ],
            'show' => true,
        ],
        'system' => [
            'name' => '系统配置',
            'ico' => '&#xe726;',
            'sub' => [
                'annous' => ['name' => '系统公告', 'uri' => '/system/annous', 'show' => true, 'method' => 'get'],  //index 方法名
                // 'line' => ['name' => '系统报表', 'uri' => '/system/line', 'show' => true, 'method' => 'get'],  //index 方法名
                'annous_edit' => ['name' => '公告编辑、管理', 'uri' => '/system/annous_edit', 'show' => false, 'method' => 'get|post'],
                'annous_del' => ['name' => '公告删除', 'uri' => '/system/annous_del', 'show' => false, 'method' => 'get|post'],
                'banner' => ['name' => '轮播图管理', 'uri' => '/system/banner', 'show' => true, 'method' => 'get'],  //index 方法名
                'banner_edit' => ['name' => '轮播图编辑、管理', 'uri' => '/system/banner_edit', 'show' => false, 'method' => 'get|post'],
                'banner_del' => ['name' => '轮播图删除', 'uri' => '/system/banner_del', 'show' => false, 'method' => 'get|post'],
                'config' => ['name' => '系统配置信息', 'uri' => '/system/config', 'show' => true, 'method' => 'get'],  //index 方法名
                'config_edit' => ['name' => '系统配置信息编辑', 'uri' => '/system/config_edit', 'show' => false, 'method' => 'get|post'],
            ],
            'show' => true,
        ],
        'admin' => [  /// controller名
            'name' => '系统',
            'ico' => '&#xe726;',
            'sub' => [
                'index' => ['name' => '员工列表', 'uri' => '/admin/index', 'show' => true, 'method' => 'get'],  //index 方法名
                'input' => ['name' => '添加员工', 'uri' => '/admin/input', 'show' => false, 'method' => 'get|post'],
                'del' => ['name' => '删除员工', 'uri' => '/admin/del', 'show' => false, 'method' => 'get|post'],
                'login_log' => ['name' => '登录日志', 'uri' => '/admin/login_log', 'show' => true, 'method' => 'get']
            ],
            'show' => true,
        ],

    ]
];
